﻿using System;

class FloatingPointNumbersComparison
{
    static void Main()
    {
        //Exercise 3.
        //Write a program that safely compares floating-point numbers with precision of 0.000001. 
        //Examples:(5.3 ; 6.01)  false;  (5.00000001 ; 5.00000003)  true
        
        Console.Write("Please enter the first number: ");
        decimal a = decimal.Parse(Console.ReadLine());
        Console.Write("Please enter the second number: ");
        decimal b = decimal.Parse(Console.ReadLine());        
        bool equal = Math.Abs(a - b) < 0.000001M;
        Console.WriteLine(equal);
    }
}
